package com.tte.common.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * UUIDUtils
 * @Author: DongWH
 * @Date: 2022/5/11 15:06
 */
@Component
public class UuidUtils {

    public static String getUuid32() {
        //因为UUID本身为32位只是生成时多了“-”，所以将它们去点就可;
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String getUuidAll() {
        //因为UUID本身为32位只是生成时多了“-”，所以将它们去点就可;
        return UUID.randomUUID().toString();
    }

}
